<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'users.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/click.js"></script>

</head>

<body class="gray-bg">

	<s:if test="#session.users!=null">
		<table class="gray-bg">
			<tr>
				<td width="70px">用户ID</td>
				<td width="120px">用户名</td>
				<td width="150px">手机号</td>
				<td width="100px">信用值</td>
				<td width="150px">邮箱</td>
				<td>操作</td>
			</tr>
			<s:iterator value="#session.users">
				<tr>
					<td><s:property value="userId" />
					</td>
					<td><s:property value="userName" />
					</td>
					<td><s:property value="userTel" />
					</td>
					<td><s:property value="creditPoint" />
					</td>
					<td><s:property value="userEmail" />
					</td>
					<td><a class="delete" href="user_deleteUserById?id=${userId}">删除</a>
					</td>
				</tr>
			</s:iterator>
		</table>
	</s:if>
</body>
</html>
